#pragma once
#include "GameObjects\Entity.h"
#include "../SGD_Wrappers/SGD_Math.h"

class CBullet;
class CElectricAreaEffect : public CEntity
{
public:
	CElectricAreaEffect(void);
	CElectricAreaEffect(int x, int y);
	~CElectricAreaEffect(void);


	virtual void Update(float fElapsedTime);
	virtual void Render( void );
	virtual bool CheckCollision( IEntity* pOther);

	float	GetAngle( void );


private:
	RECT				InterRect;
	int					RectArea;
	float				m_fLifeTime;
	CEntity*			m_pTarget;

	tVector2D			Pos;
	tVector2D			Tar;

	float				angle;

	bool				shot;


};